[INFO] cloning repository https://github.com/btrust-builders/rust-week-3-exercises
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/btrust-builders/rust-week-3-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtrust-builders%2Frust-week-3-exercises", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtrust-builders%2Frust-week-3-exercises'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8c5f5c886271604e7ca8786f6cecd181cc87a4e0
[INFO] fixing btrust-builders/rust-week-3-exercises against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbtrust-builders%2Frust-week-3-exercises" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/btrust-builders/rust-week-3-exercises
[INFO] finished tweaking git repo https://github.com/btrust-builders/rust-week-3-exercises
[INFO] tweaked toml for git repo https://github.com/btrust-builders/rust-week-3-exercises written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/btrust-builders/rust-week-3-exercises on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/btrust-builders/rust-week-3-exercises already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a
[INFO] running `Command { std: "docker" "start" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking serde_json v1.0.140
[INFO] [stderr]     Checking rust-week-3-exercises v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:17:31
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(value: u64) -> Self {
[INFO] [stdout]    |            ---                ^^^^ expected `CompactSize`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:21:31
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:29:40
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(CompactSize, usize), ...>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(CompactSize, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:40:46
[INFO] [stdout]    |
[INFO] [stdout] 40 |     fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
[INFO] [stdout]    |        ---------                             ^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<<S as Serializer>::Ok, ...>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<<S as Serializer>::Ok, <S as Serializer>::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
[INFO] [stdout]    |        -----------                        ^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Txid, ...>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<Txid, <D as Deserializer<'de>>::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:65:46
[INFO] [stdout]    |
[INFO] [stdout] 65 |     pub fn new(txid: [u8; 32], vout: u32) -> Self {
[INFO] [stdout]    |            ---                               ^^^^ expected `OutPoint`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:69:31
[INFO] [stdout]    |
[INFO] [stdout] 69 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:73:40
[INFO] [stdout]    |
[INFO] [stdout] 73 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(OutPoint, usize), BitcoinError>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(OutPoint, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:85:35
[INFO] [stdout]    |
[INFO] [stdout] 85 |     pub fn new(bytes: Vec<u8>) -> Self {
[INFO] [stdout]    |            ---                    ^^^^ expected `Script`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:89:31
[INFO] [stdout]    |
[INFO] [stdout] 89 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:93:40
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(Script, usize), BitcoinError>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(Script, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:101:24
[INFO] [stdout]     |
[INFO] [stdout] 101 |     fn deref(&self) -> &Self::Target {
[INFO] [stdout]     |        -----           ^^^^^^^^^^^^^ expected `&Vec<u8>`, found `()`
[INFO] [stdout]     |        |
[INFO] [stdout]     |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&Vec<u8>`
[INFO] [stdout]                found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:114:81
[INFO] [stdout]     |
[INFO] [stdout] 114 |     pub fn new(previous_output: OutPoint, script_sig: Script, sequence: u32) -> Self {
[INFO] [stdout]     |            ---                                                                  ^^^^ expected `TransactionInput`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:118:31
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]     |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Vec<u8>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:122:40
[INFO] [stdout]     |
[INFO] [stdout] 122 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]     |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(TransactionInput, usize), ...>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(TransactionInput, usize), BitcoinError>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:138:80
[INFO] [stdout]     |
[INFO] [stdout] 138 |     pub fn new(version: u32, inputs: Vec<TransactionInput>, lock_time: u32) -> Self {
[INFO] [stdout]     |            ---                                                                 ^^^^ expected `BitcoinTransaction`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:142:31
[INFO] [stdout]     |
[INFO] [stdout] 142 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]     |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Vec<u8>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:150:40
[INFO] [stdout]     |
[INFO] [stdout] 150 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]     |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(BitcoinTransaction, usize), ...>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(BitcoinTransaction, usize), BitcoinError>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:158:50
[INFO] [stdout]     |
[INFO] [stdout] 158 |     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |        ---                                       ^^^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]     |        |
[INFO] [stdout]     |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:17:31
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn new(value: u64) -> Self {
[INFO] [stdout]    |            ---                ^^^^ expected `CompactSize`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:21:31
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:29:40
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(CompactSize, usize), ...>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(CompactSize, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:40:46
[INFO] [stdout]    |
[INFO] [stdout] 40 |     fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
[INFO] [stdout]    |        ---------                             ^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<<S as Serializer>::Ok, ...>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<<S as Serializer>::Ok, <S as Serializer>::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
[INFO] [stdout]    |        -----------                        ^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Txid, ...>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<Txid, <D as Deserializer<'de>>::Error>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:65:46
[INFO] [stdout]    |
[INFO] [stdout] 65 |     pub fn new(txid: [u8; 32], vout: u32) -> Self {
[INFO] [stdout]    |            ---                               ^^^^ expected `OutPoint`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:69:31
[INFO] [stdout]    |
[INFO] [stdout] 69 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:73:40
[INFO] [stdout]    |
[INFO] [stdout] 73 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(OutPoint, usize), BitcoinError>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(OutPoint, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:85:35
[INFO] [stdout]    |
[INFO] [stdout] 85 |     pub fn new(bytes: Vec<u8>) -> Self {
[INFO] [stdout]    |            ---                    ^^^^ expected `Script`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:89:31
[INFO] [stdout]    |
[INFO] [stdout] 89 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<u8>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:93:40
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]    |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(Script, usize), BitcoinError>`, found `()`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<(Script, usize), BitcoinError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:101:24
[INFO] [stdout]     |
[INFO] [stdout] 101 |     fn deref(&self) -> &Self::Target {
[INFO] [stdout]     |        -----           ^^^^^^^^^^^^^ expected `&Vec<u8>`, found `()`
[INFO] [stdout]     |        |
[INFO] [stdout]     |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&Vec<u8>`
[INFO] [stdout]                found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-week-3-exercises` (lib test) due to 19 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:114:81
[INFO] [stdout]     |
[INFO] [stdout] 114 |     pub fn new(previous_output: OutPoint, script_sig: Script, sequence: u32) -> Self {
[INFO] [stdout]     |            ---                                                                  ^^^^ expected `TransactionInput`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:118:31
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]     |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Vec<u8>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:122:40
[INFO] [stdout]     |
[INFO] [stdout] 122 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]     |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(TransactionInput, usize), ...>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(TransactionInput, usize), BitcoinError>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:138:80
[INFO] [stdout]     |
[INFO] [stdout] 138 |     pub fn new(version: u32, inputs: Vec<TransactionInput>, lock_time: u32) -> Self {
[INFO] [stdout]     |            ---                                                                 ^^^^ expected `BitcoinTransaction`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:142:31
[INFO] [stdout]     |
[INFO] [stdout] 142 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]     |            --------           ^^^^^^^ expected `Vec<u8>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `Vec<u8>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:150:40
[INFO] [stdout]     |
[INFO] [stdout] 150 |     pub fn from_bytes(bytes: &[u8]) -> Result<(Self, usize), BitcoinError> {
[INFO] [stdout]     |            ----------                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(BitcoinTransaction, usize), ...>`, found `()`
[INFO] [stdout]     |            |
[INFO] [stdout]     |            implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(BitcoinTransaction, usize), BitcoinError>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:158:50
[INFO] [stdout]     |
[INFO] [stdout] 158 |     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |        ---                                       ^^^^^^^^^^^ expected `Result<(), Error>`, found `()`
[INFO] [stdout]     |        |
[INFO] [stdout]     |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(), std::fmt::Error>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-week-3-exercises` (lib) due to 19 previous errors
[INFO] running `Command { std: "docker" "inspect" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a", kill_on_drop: false }`
[INFO] [stdout] 2997c18beb2256c42bbf52ba659f850db7035a6ccb65084fedc9d38fd8680a2a
